﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterAdmin.master" CodeFile="Garagem.aspx.cs" Inherits="AreaRestrita_Garagem" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphTitulo" runat="server">
   <div class="myformGrid"> <h1>Lista de garagens</h1></div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPagina" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
</asp:ScriptManager>
    <asp:UpdatePanel ID="upAutomovel" Visible="true" runat="server">
        <ContentTemplate> 
        <div class="myformGrid">
                    <label>Busca por Nome : </label>
                <asp:TextBox ID="txtGaragem" runat="server" CssClass="input"></asp:TextBox>
                    <asp:Button ID="btnFiltrar" Text="Filtrar" runat="server"  onclick="btnFiltrar_Click" CssClass="button"   /> 
                    <asp:Button ID="btnNovo" Text="Novo" runat="server" onclick="btnNovo_Click"  CssClass="button"/>
                    </div>
                    
                    <asp:GridView CssClass="grid" ID="gdvGaragem" EmptyDataText="Nenhuma Garagem encontrado" runat="server" EnableModelValidation="True" AutoGenerateColumns="False" onrowcommand="gdvGaragem_RowCommand"  onrowdatabound="gdvGaragem_RowDataBound" >
                        <Columns>
                            <asp:BoundField DataField="Nome"  HeaderText="Nome" />                                                        
                            <asp:TemplateField HeaderText="Ativo">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkAtivo" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="" >
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgEditar" CommandName="Editar" ImageUrl="~/Imagens/Editar.png" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="" >
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgExcluir" CommandName="Excluir" ImageUrl="~/Imagens/Excluir.png" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
               
        
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
